package net.lcheng.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class LoginEntity implements Serializable {
	//    @Length(min = 5, max = 20)
//    @Pattern(regexp = "[a-zA-Z]{5,20}", message = "{user.name.illegal}")

//    @NotEmpty(message = "手机号不能为空")
	@Pattern(regexp = "^(1[3|4|5|7|8][0-9])\\d{8}$",message = "手机格式不正确")
	private String userPhone;

	@NotEmpty(message = "密码不能为空")
	private String userPwd;

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
}
